package com.gavin.netflix.ribbonclient.controller;

import com.gavin.netflix.ribbonclient.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author: Gavin
 * Description:
 * Date: 2019/1/18 Time: 16:13
 * Zhan Hong Copyright (c) 2018 All Rights Reserved.
 **/
@RestController
public class ClientController {

    @Autowired
    HiService hiService;

    @GetMapping(value = "/hi/{name}")
    public String hiService(@PathVariable String name) {
        return hiService.hiService( name );
    }
}
